/*******************************************************************************
  * Copyright(c) 2023 Levetop Semiconductor Co.,Led. All rights reserved.
  * @file     button.h
  * @author   UartTFT Application Team
  * @version  V0.0.1
  * @date     2023-01-04
  * @brief    This file contains the functions prototypes for the UartTFT
  *           Application display firmware.
 ********************************************************************************/

#ifndef BUTTON_H_
#define BUTTON_H_

#include "type.h"
#include "module_select.h"

/***basic touch*/
typedef struct
{
	uint16_t Code; // Function code
	uint8_t len;   // length
	uint16_t Xs;   // Upper left corner coordinate
	uint16_t Ys;
	uint16_t Xe; // Lower right corner coordinate
	uint16_t Ye;
	uint16_t Keyvalue; // Key value
	uint16_t id;	   // icon id
	uint16_t press_id;
	uint16_t Next_id;
	uint16_t overlay;
} Basci_Info;

extern Basci_Info gBasci_Info[BASIC_SIZE];
extern uint8_t Basci_count;
extern uint8_t Basci_flag;
extern uint8_t Basci_num;

extern int Menu_1_flag;
extern int Menu_2_flag;
extern uint8_t Highlighted_state;
extern int Set_flag;
extern int Icon_flag;
extern int Usb_flag;
extern uint16_t Play_Order;
extern int Play_pause;
extern uint8_t fanhui_flag;
extern uint32_t fanhui_timesum;
extern uint8_t BassFH_flag;
extern uint32_t BassFH_time;
extern uint8_t Page_sum;
extern uint16_t Page_sum1;
extern uint8_t File_sum;
extern uint8_t Long_flag;
extern uint8_t File_countA;
extern int File_level;
extern void send_data_ALL(uint8_t value3,uint8_t value4,uint8_t value5,uint8_t value6,uint8_t value7);

void Basic_touch(void);
void Basci_touch_overlay(uint16_t id, uint8_t num);
#endif /* BUTTON_H_ */
